From: Olaf Hering Date: Thu, 19 Nov 2015 08:32:52 +0000 (+0000) Subject: tools/hotplug: quote all variables in vif-bridge X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~2207 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=0a627988c15011f84ec576cfa8db5006a82d1591;p=xen.git tools/hotplug: quote all variables in vif-bridge Cosmetics: most of the variables used in vif-bridge are already quoted. Add quoting also to the remaining shell variables. Signed-off-by: Olaf Hering Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu Acked-by: Ian Campbell --- diff --git a/tools/hotplug/Linux/vif-bridge b/tools/hotplug/Linux/vif-bridge index 3d72ca4526..6956dea66a 100644 --- a/tools/hotplug/Linux/vif-bridge +++ b/tools/hotplug/Linux/vif-bridge @@ -68,7 +68,7 @@ else fi RET=0 -ip link show dev $bridge 1>/dev/null 2>&1 || RET=1 +ip link show dev "$bridge" 1>/dev/null 2>&1 || RET=1 if [ "$RET" -eq 1 ] then fatal "Could not find bridge device $bridge" @@ -77,7 +77,7 @@ fi case "$command" in online) setup_virtual_bridge_port "$dev" - set_mtu $bridge $dev + set_mtu "$bridge" "$dev" add_to_bridge "$bridge" "$dev" ;; @@ -88,7 +88,7 @@ case "$command" in add) setup_virtual_bridge_port "$dev" - set_mtu $bridge $dev + set_mtu "$bridge" "$dev" add_to_bridge "$bridge" "$dev" ;; esac